package 第十章;

import java.io.*;

public class test1 {  public static void main(String[] args) {
    try (RandomAccessFile inAndOut = new RandomAccessFile("file.txt", "rw");) {
        for (long i = inAndOut.length() - 1; i >= 0; i--) {
            inAndOut.seek(i);
            System.out.printf("%c", (char) inAndOut.readByte());
        }
    } catch (IOException e) {
        e.fillInStackTrace();
    }
}
}
